package com.example.modle;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpStatus;



@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ResponseInfo<T> {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private T t;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private HttpStatus httpStatus;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ResponseInfo.Reason reason;


    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Reason {
        private String code;

        private String message;

    }
}
